how to check if postgres is running linux